﻿CREATE PROCEDURE [dbo].[News_Update]
	@Id int,
	@Title NVARCHAR(255), 
    @ShortDescription NVARCHAR(500), 
    @Description NVARCHAR(MAX), 
    @Date DATETIME, 
    @ImageUrl NVARCHAR(255), 
    @CreationDate DATETIME, 
    @CreatedBy INT, 
    @UpdateDate DATETIME, 
    @UpdateBy INT
AS

	UPDATE [News] SET
	
	Title = @Title,
	ShortDescription = @ShortDescription,
	[Description] = @Description,
	[Date] = @Date,
	ImageUrl = @ImageUrl,
	CreationDate = @CreationDate,
	CreatedBy = @CreatedBy,
	UpdateDate = @UpdateDate,
	UpdateBy = @UpdateBy
	
	WHERE Id = @Id

